
.editorChartBox{

  .resize_wrapper{
    width: 100%;
    height: 100%;
    position: relative;
    // 容器
    .resize_chart_container{
      position: absolute;
      height: 100%;
      width: 100%;
      z-index: 1;
      user-select: auto;
      cursor: move;
      .mask{
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
      }
    }
    .resize_cover{
      position: absolute;
      display: none;
      opacity: 1;
      // 工具跟随选中状态显示
      .tool{
        ul.actions{
          position: absolute;
          z-index: 99999;
          right: 10px;
          top: 0;
          display: flex;
          li{
            cursor: pointer;
            width: 24px;
            height: 24px;
            background-color: #09f;
            color: #fff;
            text-align: center;
            line-height: 24px;
            font-size: 18px;
            margin-left: 4px;
            border-radius: 2px;
          }
        }
      }
      // 尺寸缩放容器
      .resize_container{
        height: 100%;
        .resizableBox{
          .rightHandler{
            width: 20px !important;
            right: -20px !important;
            z-index: 999;
          }
          .bottomHandler{
            height: 20px !important;
            bottom: -20px !important;
            z-index: 999;
          }
          .bottomRightHandler{
            width: 40px !important;
            height: 40px !important;
            bottom: -20px !important;
            right: -20px !important;
            z-index: 999;
          }
        }
      }
      .resize{
        position: absolute;
        top: -2px;
        left: -2px;
        bottom: -2px;
        right: -2px;
        border: 2px solid transparent;
      }

    }
  }

  // 正在拖拽时
  &.onDrag{
    z-index: 99999!important;
  }


  &.selected{
    .resize_wrapper .resize_cover{
      display: block;
      .resize{
        border: 2px solid #09f;
        background-color: rgba(23,151,191,.2);
        box-shadow: none;
      }
      .resize_handle_wrapper{
        :global{
          .resize-handle{
            position: absolute;
            background: #09f;
            width: 10px;
            height: 10px;
            z-index: 4;
            &.handle-bottom{
              bottom: -8px;
              left: 50%;
              margin-left: -5px;
            }
            &.handle-right{
              right: -8px;
              top: 50%;
              margin-top: -5px;
            }
            &.handle-rightBottom{
              right: -8px;
              bottom: -8px;
            }
            &.handle-rightTop{
              right: -8px;
              top: -8px;
            }
            &.handle-leftBottom{
              left: -8px;
              bottom: -8px;
            }
          }
        }
      }
    }
  }

  &.isHover{
    .resize_wrapper .resize_cover{
      display: block;
      .resize{
        border: 2px solid #09f;
        background-color: rgba(23,151,191,.2);
        box-shadow: none;
      }
      // 禁止缩放
      .rightHandler,.bottomHandler, .bottomRightHandler{
        display: none;
      }
    }

  }

  &.active{

  }

}
